package com.lovo.boot.bean;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author ren
 * @since 2022-03-22
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("t_emp")
public class Emp extends Model {

    private static final long serialVersionUID = 1L;

    @TableId(value = "e_id", type = IdType.AUTO)
    private Integer eId;

    private String eName;

    private String eBirthday;

    private String eNowpost;

    private String eNowsalary;
    @TableField(exist = false)
    private List<Info> infos;
}
